export const request = (params) => { 
    const baseUrl = "http://mock-api.com/mnEe4VnJ.mock";
    return new Promise((resolve, reject) => { 
        wx.request({
            ...params,
            url: baseUrl+params.url,
            success: (result)=>{
                resolve(result);
            },
            fail: (err) => {
                reject(err);
            }
        });
    })
}